/*
 * @Author: swl
 * @Date: 2023-07-03 10:35:47
 * @LastEditors: swl
 * @LastEditTime: 2023-07-06 08:32:12
 */
// import { Component } from '@angular/core';
import { Component, ViewChild, ElementRef } from '@angular/core';
import { Router } from '@angular/router';
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
// @ViewChild('myElement', { static: true }) myElement: ElementRef;

export class AppComponent {
  title = 'daily-push';

  cpath:string = ""
  constructor(private router:Router){
      this.cpath = location.pathname
  }

  goPage(path:string){
    this.cpath = path
    this.router.navigate([path])
  }
}
